﻿using Orleans.Runtime.Host;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Zj.OrleansDemo.Server
{
    class Program
    {
        static void Main(string[] args)
        {
            using (var host=new SiloHost("Default"))
            {
                //host.LoadOrleansConfig();
                host.InitializeOrleansSilo();
                host.StartOrleansSilo();

                Console.WriteLine("Orleans 服务已经启动，按任意键关闭服务");
                Console.ReadKey();

                host.StopOrleansSilo();
            }
        }
    }
}
